package com.xuehu.cloud;

import com.xuehu.loadBalancer.RibbonRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author guoweia@cslc.com.cn
 * @createTime 2020/11/18 14:13
 * @description
 */

//指定XUEHU-PAYMENT-SERVICE（区分大小写）这个服务使用RibbonRule这个负载策略
@RibbonClient(name = "XUEHU-PAYMENT-SERVICE", configuration = RibbonRule.class)
@EnableEurekaClient
@SpringBootApplication
public class AppOrder {
     public static void main(String[] args) {
         SpringApplication.run(AppOrder.class, args);
     }
}
